<!--<#%= render 'common/nav'%>-->
<div class="row home-icons hidden-xs">
 <div class="col-md-3 col-sm-3">
	<div class="item item1">
		<div class="icon">
			<a href="<%= topics_path%>"><i class="fa fa-comments-o fa-2x"></i></a>
		</div>
		<div class="text">
			<a href="<%= topics_path %>">ruby社区<i class="pull-right fa fa-arrow-right"></i></a>
		</div>
	</div>
 </div>

 <div class="col-md-3 col-sm-3">
	<div class="item item2">
		<div class="icon">
			<a href="<%= topics_path%>"><i class="fa fa-file-text"></i></a>
		</div>
		<div class="text">
			<a href="<%= topics_path %>">技术文档<i class="pull-right fa fa-arrow-right"></i></a>
		</div>
	</div>
 </div>

 <div class="col-md-3 col-sm-3">
	<div class="item item3">
		<div class="icon" style="display: block">
	 		<a href="<%= topics_path%>" ><i class="fa fa-pied-piper-alt"></i></a>
		</div>
		<div class="text">
	 		<a href="<%= topics_path %>">招聘与求职<i class="pull-right fa fa-arrow-right"></i></a>
		</div>
 	</div>
 </div>

 <div class="col-md-3" col-sm-3>
	<div class="item item4">
		<div class="icon" style="display: block">
	 		<a href="<%= topics_path%>" ><i class="fa  fa-sheqel"></i></a>
		</div>
	 	<div class="text">
	 		<a href="<%= topics_path %>">精华文章<i class="pull-right fa fa-arrow-right"></i></a>
		</div>
 	</div>
 </div>
<br>
</div>

<br>
<div class="topics panel panel-default">
 <div class="panel-heading">精华帖</div>
 <div class="panel-body topics row">
	 <!-- 奇偶数分组 partial分组方法-->
	 <%
	 	odd_topics,even_topics=@excellent_topics.partition.each_with_index { |k,i | i.odd? }
	 %>
	<div class="col-md-6 topics-group">
		<%= render partial: "topics/topic",collection: even_topics%>
	</div>
	<div class="col-md-6 topics-group">
		<%=render partial: "topics/topic",collection: odd_topics%>
	</div>
 </div>
 <div class="panel-footer">
	<%= link_to '查看更多精品贴',excellent_topics_path%>
 </div>
</div>

<div class="panel panel-default">
	<div class="panel-heading">
		所有栏目
	</div>
	<div class="panel-body">
		<table class="">
			<% @nodes.each_slice(5) do |user_per_column|%>
				<tr>
					<%user_per_column.each do |item|%>
						<td style="padding: 14px 80px;"><%= link_to item.name,node_topics_path(item.id)%> </td>
					<%end%>
				</tr>
			<%end%>
		</table>
	</div>
</div>

